package com.jash.jiguangdemo;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.TextView;

public class CustomActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_custom);
        Intent intent = getIntent();
        String text = intent.getStringExtra("text");
        long id = intent.getLongExtra("id", 0);
        TextView textView = (TextView) findViewById(R.id.custom_container);
        textView.setText("text:" + text + "\nid:" + id);

    }
}
